import request from '@/utils/request'
import { download } from '@/utils/request'

// 修改婚姻认证
export function updateMarriage(data) {
  return request({
    url: '/businessCore/faUserAuthenticationMarriage',
    method: 'put',
    data
  })
}

// 删除婚姻认证
export function delMarriage(id) {
  return request({
    url: '/businessCore/faUserAuthenticationMarriage/' + id,
    method: 'delete'
  })
}

// 导出婚姻认证
export function exportMarriage(params, fileName) {
  const url = '/businessCore/faUserAuthenticationMarriage/export'
  download(
    url,
    params,
    fileName + `_${new Date().getTime()}.xlsx`
  )
}